package com.xyzwps.harbor.handler.user;

import com.xyzwps.harbor.handler.validator.CommonValidators;
import com.xyzwps.harbor.handler.validator.Validatable;

class LoginDto implements Validatable<LoginDto> {
    private String username;
    private String password;

    @Override
    public LoginDto validate() {
        CommonValidators.usernameVF.validate(username);
        CommonValidators.passwordVF.validate(password);
        return this;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

}
